package com.neonbacon.snake;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class SnakeActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Button button = (Button) findViewById(R.id.button1);
		button.setOnClickListener(mCreditsClick);

		Button button1 = (Button) findViewById(R.id.newgame);
		button1.setOnClickListener(mNewGameClick);
	}

	private OnClickListener mCreditsClick = new OnClickListener() {
		public void onClick(View v) {
			Intent i = new Intent(SnakeActivity.this, CreditsActivity.class);
			startActivity(i);
		}
	};
	private OnClickListener mNewGameClick = new OnClickListener() {
		public void onClick(View v) {
			Intent i = new Intent(SnakeActivity.this, InGameActivity.class);
			startActivity(i);

		}
	};
}